import './globals.css'
import { ReactNode } from 'react'
import Navigation from './components/Navigation'
import { GlobalStateProvider } from './context/GlobalStateContext'

export const metadata = {
  title: 'SPA Demo - Next.js',
  description: 'Next.js双向数据绑定演示',
}

export default function RootLayout({
  children,
}: {
  children: ReactNode
}) {
  return (
    <html lang="zh-CN">
      <body>
        <GlobalStateProvider>
          <Navigation />
          {children}
        </GlobalStateProvider>
      </body>
    </html>
  )
}